<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

        *{
            padding: 0;
            margin: 0;
        }
        nav{
            width: 960px;
            height: 60px;
            border:1px red solid;
            margin: 100px auto;
            border-radius: 10px;
        }
    ul{
        list-style: none;
         width: 100%;
         height: 100%;
    }
    li{
        width: 160px;
        height: 100%;
        background-color: royalblue;
        float: left;
    }

    a{
         text-decoration: none;
         
    } 
    


    </style>
</head>
<body>

      <nav class='one'>
           <ul>
               <li><a href="">菜单1</a></li>
               <li><a href="">菜单2</a></li>
               <li><a href="">菜单3</a></li>
               <li><a href="">菜单4</a></li>
               <li><a href="">菜单5</a></li>
               <li><a href="">菜单6</a></li>
           </ul>
      </nav>
    

      <nav class='two'>
         <div><a href="">菜单1</a></div>
         <div><a href="">菜单2</a></div>
         <div><a href="">菜单3</a></div>
         <div><a href="">菜单4</a></div>
         <div><a href="">菜单5</a></div>
         <div><a href="">菜单6</a></div>   
      </nav>
 
</body>
</html>